-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Map-Viewer] Add layer from WFS service #776
Conversation
Affected libs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, simple and clean, good job!
I made a comment about always applying the features count limit to WFS layers, feel free to merge once this is addressed.
if ('featureCount' in layerModel && layerModel.featureCount) { | ||
urlObj.searchParams.set( | ||
'maxFeatures', | ||
layerModel.featureCount.toString() | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can add this limit every time without having it specified in the context, because having too many objects on the map is always going to be a problem.
@@ -32,6 +32,7 @@ interface MapContextLayerWfsModel { | |||
type: 'wfs' | |||
url: string | |||
name: string | |||
featureCount?: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See other comment, this shouldn't be necessary
|
||
this.wfsEndpoint = await new WfsEndpoint(this.wfsUrl).isReady() | ||
this.layers = this.wfsEndpoint.getFeatureTypes() | ||
console.log(this.layers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line can be removed I think 🙂 did we forget a console.log in WMS as well?
d19b555
to
80decb8
Compare
80decb8
to
78bfee8
Compare
This pull request adds the feature that allows users to add a layer from a Web Feature Service (WFS) to their map.
add-layer-from-wfs
component insrc/app/components/add-layer-from-wfs/add-layer-from-wfs.component.ts
map-context.service.ts
andmap-context.model.ts
to add an option which limits WFS features countTask List:
Screenshots:
#756